namespace KPIS.GERP.Models.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class update0115 : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.SysApproveProcessMapping",
                c => new
                    {
                        AppPrcMapId = c.Int(nullable: false, identity: true),
                        Description = c.String(),
                        AppPrcGrpId = c.Int(nullable: false),
                        AppPrcId = c.Int(nullable: false),
                        ValueToCompare = c.Decimal(nullable: false, precision: 18, scale: 2),
                        TypeOfCompare = c.Int(nullable: false),
                    })
                .PrimaryKey(t => t.AppPrcMapId);
            
            AddColumn("dbo.SysApproveProcessGroup", "Code", c => c.String());
        }
        
        public override void Down()
        {
            DropColumn("dbo.SysApproveProcessGroup", "Code");
            DropTable("dbo.SysApproveProcessMapping");
        }
    }
}
